<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>京东搜索框</title>
    <style>
        input {
            outline: none;
            border: none;
            box-sizing: border-box;
        }
        
        .input-wrap {
            position: relative;
            width: 250px;
            height: 35px;
            margin: 50px auto;
        }
        
        .input-wrap .auto-kw {
            position: absolute;
            top: 7px;
            left: 5px;
            z-index: -1;
            font-size: 14px;
            color: #989898;
        }
        
        .input-wrap .auto-kw.show {
            display: block;
            color: #989898;
        }
        
        .input-wrap .auto-kw.hide {
            display: none;
            color: #666;
        }
        
        .input-wrap .search-input {
            width: 100%;
            height: 100%;
            background-color: transparent;
            border: 1px solid #ddd;
            text-indent: 5px;
            color: #424242;
        }
    </style>
</head>

<body>
    <div class="input-wrap">
        <div class="auto-kw" id="J_auto_kw">tuijian</div>
        <input type="text" id="J_search_kw" class="search-input">

    </div>
    <div style="display: none;" id="J_recomKw">
        [ "美白独立日" , "lg显示器" , "洗发水套装" , "笔记本显示器" ]
    </div>
    <script src="../Todolist/js/utils.js"></script>
    <script src="js/search.js"></script>
    <script>
    </script>
</body>

</html>